import Objects from './Objects';
function normalizeKeys(object) {
  if (Objects.isObject(object)) {
    const obj = {};
    Object.keys(object).forEach((key) => {
      const value = normalizeKeys(object[key]);
      // obj[camelCase(key)] = value;
      obj[key] = value;
    });
    return obj;
  } else if (Objects.isArray(object)) {
    return object.map(val => normalizeKeys(val));
  }
  return object;
}

export default normalizeKeys;